package com.megvii.koala.net.user;

import com.megvii.corelib.net.RequestParam;
import com.megvii.corelib.net.request.MegviiRequest;
import com.megvii.corelib.util.DateTimeUtil;
import com.megvii.koala.data.bean.UserInfoBean;
import com.megvii.koala.net.Commands;

/**
 * Created by linyue on 15/12/27.
 */
public class EditUserInfoRequest implements MegviiRequest
{
    @RequestParam
    public String description;

    @RequestParam
    public long birthday;

    @RequestParam
    public int gender;

    public EditUserInfoRequest(UserInfoBean userInfo)
    {
        super();
        this.description = userInfo.description;
        this.birthday = DateTimeUtil.toSTimestamp(userInfo.birthday);
        this.gender = userInfo.gender;
    }

    @Override
    public String getCommand()
    {
        return Commands.EDIT_USER_INFO;
    }
}
